import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'homeIndex',
      component :() => import('../components/homeIndex')
    },
    {
      path: '/login',
      name: 'login',
      component :() => import('../components/login')
    },
    {
      path: '/register/:id',
      name: 'register',
      component :() => import('../components/register')
    },
    {
      path: '/buyHash',
      name: 'buyHash',
      component :() => import('../components/buyHash')
    },
    {
      path: '/payment',
      name: 'payment',
      component :() => import('../components/payment')
    },
    {
      path: '/assetsManagement',
      name: 'assetsManagement',
      component :() => import('../components/assetsManagement')
    },
    {
      path: '/withdrawDeposit/:code',
      name: 'withdrawDeposit',
      component :() => import('../components/withdrawDeposit')
    },
    {
      path: '/confirmWithdrawal',
      name: 'confirmWithdrawal',
      component :() => import('../components/confirmWithdrawal')
    },
    {
      path: '/transactionDetails',
      name: 'transactionDetails',
      component :() => import('../components/transactionDetails')
    },
    {
      path: '/recharge/:code',
      name: 'recharge',
      component :() => import('../components/recharge')
    },
    {
      path: '/orderHistory',
      name: 'orderHistory',
      component :() => import('../components/orderHistory')
    },
    {
      path: '/interestsAssets',
      name: 'interestsAssets',
      component :() => import('../components/interestsAssets')
    },
    {
      path: '/faq',
      name: 'faq',
      component :() => import('../components/faq')
    },
    {
      path: '/userFeedback',
      name: 'userFeedback',
      component :() => import('../components/userFeedback')
    },
    {
      path: '/inviteFriends',
      name: 'inviteFriends',
      component :() => import('../components/inviteFriends')
    },
    {
      path: '/safetyCenter',
      name: 'safetyCenter',
      component :() => import('../components/safetyCenter')
    },
    {
      path: '/setPassword/:id',
      name: 'setPassword',
      component :() => import('../components/setPassword')
    },
    {
      path: '/identityAuthentication',
      name: 'identityAuthentication',
      component :() => import('../components/identityAuthentication')
    },
    {
      path: '/returnInformation',
      name: 'returnInformation',
      component :() => import('../components/returnInformation')
    },
    {
      path: '/bootPage',
      name: 'bootPage',
      component :() => import('../components/bootPage')
    },
    
  ]
})
